libxc: Flush I/O before xc_domain_save completion
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:22:16 +0000 (07:22 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:22:16 +0000 (07:22 +0100)
commit560f4dc7f29e3c5f79728bc01b2dd4828e55b673
tree40ac35ebfed8db098c7a8c93b453fcf1476283e9
parented85f602c4b242ce9d7ae33bfdc6b48674df2e69
libxc: Flush I/O before xc_domain_save completion

The final, flushing call to discard_file_cache also discards any
errors from fsync. Call fsync explicitly before leaving, to check if
all VM memory actually made it to the disk.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
tools/libxc/xc_domain_save.c